﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    [Table("NodeInFile")]
    public class NodeInFile
    {
        [Key()]
        public Guid ID { get; set; }
        public Guid NodeID { get; set; }
        [MaxLength(100)]
        public string Name { get; set; }
        [MaxLength(500)]
        public string FileURI { get; set; }
        [MaxLength(50)]
        public string Department { get; set; }
        public DateTime? ExpectDate { get; set; }
        public DateTime? ActualDate { get; set; }
        public bool Completed { get; set; }
        [ForeignKey("NodeID")]
        public virtual ProjectNode ProjectNodeItem { get; set; }
    }
}
